{#
    This template defines the meta_editor macro.
    It will be passed to the modify.html template.

    The macro defines a portion of a form enabling a user to modify selected meta data.
#}

{% import "forms.html" as forms %}

{% macro meta_editor(form, may_admin) %}
    <h2>General meta</h2>
    <dl>
        {% if may_admin %}
            {{ forms.render(form['acl']) }}
        {% else %}
            {{ forms.raw_input(form['acl'], type='hidden') }}
        {% endif %}
        {% for e in [
            'summary',
            'tags',
            ] %}
            {{ forms.render(form[e]) }}
        {% endfor %}
    </dl>
    <div class="hint">{{ _("Tags  may have embedded blanks, use commas to separate.") }}</div>
{% endmacro %}
